package cn.gson.boot.model.dao;

import cn.gson.boot.model.pojos.Quotation;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import javax.transaction.Transactional;

public interface QuotationDao extends CrudRepository<Quotation,Integer> {
    //审核
    @Transactional
    @Modifying(clearAutomatically = true)
    @Query(nativeQuery = true,value = "update quotation_ set Quotation_approval=?1 where Quotation_id=?2")
    public void shenheBaoJiaDan(String sh,Integer qId);
}
